package com.htd.htdapmservice.mybatis;

import com.htd.htdapmcommon.mybatis.DalBaseMyBatis;
import com.htd.htdapmdmo.DataCompare;
import com.htd.htdapmservice.dao.DataCompareDao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;


@Repository
public class DataCompareInfoMapper extends DalBaseMyBatis<DataCompare> implements DataCompareDao {

	/**
     * 选择任务数据。
     */
	@Override
	public List<DataCompare> findDataCompareListByStatus(String status) {
		 Map<String,Object> map  = new HashMap<String,Object>();
	        map.put("send_status",status);
	        return this.sqlSessionTemplate.selectList(this.getEntityName() + ".findDataCompareListByStatus", map);
	}

	/**
     * 修改alarmStatus
     */
	@Override
	public void updateAlarmStatus(Map<String, Object> paramMap) {
		this.sqlSessionTemplate.update(this.getEntityName() + ".updateAlarmStatus", paramMap);
	}

}